package club.hicode.daydayup.value;

import cn.hutool.core.lang.Console;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * Value测试
 *
 * @author Liu Chunfu
 * @date 2018-04-20 上午11:35
 **/
@Component
public class ValueContext {

    @Value("${mic.value}")
    public String infoValue;

    public static String value;

    @PostConstruct
    public void init() {
        Console.log(infoValue);
        value = infoValue;
    }


}
